package com.zy.dp.strategy.example3;

public class Card implements PaymentStrategy
{

	@Override
	public void pay(PaymentContext ctx)
	{
		PaymentContext2 ctx2 = (PaymentContext2) ctx;

		System.out.println("现在给" + ctx2.getName() + "的" + ctx2.getAccount()
				+ "账号支付了" + ctx2.getMoney() + "元");

	}

}
